//
//  HomePageModel.m
//  EverydayDemo
//
//  Created by qianfeng01 on 15-7-18.
//  Copyright (c) 2015年 qianfeng01. All rights reserved.
//

#import "HomePageModel.h"

@implementation HomePageModel
-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{}
-(void)setValue:(NSDictionary *)dic
{
    NSArray *imageArr=dic[@"image"];
    self.imageUrl=imageArr[0][@"url"];
    self.authorName=dic[@"author"][@"name"];
    self.categryName=dic[@"category"][@"name"];
    self.title=dic[@"article"][@"title"];
    self.url=dic[@"article"][@"url"];
    self.readCount=[dic[@"article"][@"articleStats"][@"read"] stringValue];
    self.articleId=dic[@"article"][@"articleId"];
    self.Authorimage=dic[@"author"][@"image"];
    self.catactId=dic[@"author"][@"contactId"];
    self.IcomImage=dic[@"author"][@"avatar"];
    self.introduction=dic[@"author"][@"introduction"];
}
@end
